package com.bwie.goods.mapper;

import com.bwie.common.domain.Goods;
import com.bwie.common.domain.request.GoodsReq;
import com.bwie.common.domain.response.GoodsQueryRes;
import com.bwie.common.domain.response.GoodsRes;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface GoodsMapper {

    Goods findById(Integer goodsId);

    List<GoodsRes> goodsList(GoodsReq goodsReq);

    void insert(Goods goods);

    void update(Goods goods);

    void del(Integer goodsId);

    void batchDel(List<Integer> goodsIds);


    List<GoodsQueryRes> findAll();
}
